﻿using BCL.WPFComponent.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfControlTool.Controls
{
    /// <summary>
    /// UCUserInfo.xaml 的交互逻辑
    /// </summary>
    public partial class UCUserInfo : BaseShowControl
    {
        public UCUserInfo()
        {
            InitializeComponent();
        }

        public override void LanguageBinding()
        {
           
        }

        private void BaseShowControl_Loaded(object sender, RoutedEventArgs e)
        {
            DevicesView.Entity.SystemUserInfo info = DevicesView.Logic.App.AppResource.CurrentResource.LoginUser;
            textName.Text = textName1.Text = info?.UserName;
            textPhone.Text = info.Phone;
            DevicesView.Entity.HospitalInfo hinfo = DevicesView.Logic.App.AppResource.CurrentResource.Hospital;
            textHId.Text = hinfo.Code;
            textHName.Text = hinfo.Name;
            textHaddress.Text = hinfo.Address;
        }
    }
}
